<%@ tag dynamic-attributes="dynAttr" body-content="empty" pageEncoding="UTF-8" %>
<%@tag import="java.text.SimpleDateFormat"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@tag import="java.util.*" %>
<%@ attribute name="date" required="true" rtexprvalue="true" type="java.util.Date" %>
<%@ attribute name="format" required="true" rtexprvalue="true" type="java.lang.String" %>
<%
	try{
		Date date = (Date)getJspContext().getAttribute("date");
		String format = (String)getJspContext().getAttribute("format");
		SimpleDateFormat sdf = new SimpleDateFormat(format);
		String dateStr = sdf.format(date);
		out.print(dateStr);
	}catch(Exception e){
	}
%>

